<?php
/**
 * The template for displaying all pages
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
get_header();
?>

<div class="content">
    <div class="container">
        <div class="box-main">
            <div class="row">
                <div class="col-md-9">
                    <div class="tab">
                        <a href="<?php echo get_site_url(); ?>">Home / </a> <?php echo $post->post_title ?> </div>
                    <h2><?php echo $post->post_title ?> </h2>
                    <div class="text-content">
                        <?php
                         $content =  $post->post_content;
                         $file_name = get_post_meta($post->ID,'_urlupload',true);
                         $file_upload = get_site_url().'/wp-content/themes/travel_donald/upload/fileupload/'.$file_name;
                         $replace = '<a href="'.$file_upload.'" ><img src="'.get_template_directory_uri().'/images/pdf-download.jpeg" width="50" /></a>';
                         $content= str_replace("[FILEUPLOAD]", $replace, $content) ;
                         echo $content = apply_filters('the_content',$content);
                        ?>
                    </div>
                   
                </div>
                 <?php
                    include_once 'right_single.php';
                    ?>
            </div>
        </div>
    </div>
</div>

<?php get_sidebar(); ?>
<?php get_footer(); ?>